package com.test.dao;

import com.test.entity.CompAllInfoDto;
import com.test.entity.RecruitDto;
import com.test.entity.StuAllInfoDto;
import com.test.entity.TimeTableDto;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;

import java.util.List;
import java.util.Map;

public interface StuOperatDao {

    @SelectProvider(type=StuOperatProvider.class,method="selectXtUser")
    int selectXtUser(String u_acount,String u_password);

    @InsertProvider(type=StuOperatProvider.class,method="insertXtUser")
    int insertXtUser(String u_acount,String wx_acount);

    @SelectProvider(type=StuOperatProvider.class,method="selectStuByAcount")
    StuAllInfoDto selectStuByAcount(String acount);

    @SelectProvider(type=StuOperatProvider.class,method="selectUacount")
    String selectUacount(String acount);

    @SelectProvider(type=StuOperatProvider.class,method="wxselectStuInfoByWx")
    StuAllInfoDto wxselectStuInfoByWx(String wx_acount);

    @SelectProvider(type=StuOperatProvider.class,method="selectStuAcount")
    String selectStuAcount(String stu_code);

    @SelectProvider(type=StuOperatProvider.class,method="selectStuCode")
    String selectStuCode(String u_acount);

    @SelectProvider(type=StuOperatProvider.class,method="getUpassword")
    String getUpassword(String acount);

    @DeleteProvider(type=StuOperatProvider.class,method="delbangdingxitong")
    int delbangdingxitong(String wx_acount);

    @SelectProvider(type=StuOperatProvider.class,method="selectStuByStuCode")
    StuAllInfoDto selectStuByStuCode(String acount);

    @SelectProvider(type=StuOperatProvider.class,method="scanLogin")
    String scanLogin(String wx_acount);

    @InsertProvider(type=StuOperatProvider.class,method="insertStuResume")
    int insertStuResume(StuAllInfoDto stuAllInfoDto);

    @InsertProvider(type=StuOperatProvider.class,method="insertCodePath")
    int insertCodePath(String acount,String pathName);

    @InsertProvider(type=StuOperatProvider.class,method="insertTimeTableInfo")
    int insertTimeTableInfo(TimeTableDto timeTableDto);

    @DeleteProvider(type=StuOperatProvider.class, method="deleteStuResume")
    void deleteStuResume(String acount);

    @DeleteProvider(type=StuOperatProvider.class, method="deleteTimeTableInfo")
    void deleteTimeTableInfo(String acount);

    @DeleteProvider(type=StuOperatProvider.class, method="cleanTimeTableInfo")
    void cleanTimeTableInfo();


    @SelectProvider(type=StuOperatProvider.class,method="selectTimeTableInfo")
    TimeTableDto selectTimeTableInfo(String acount);

    @SelectProvider(type=StuOperatProvider.class,method="selectAllComp")
    List<CompAllInfoDto> selectAllComp(CompAllInfoDto compAllInfoDto);

    @SelectProvider(type=StuOperatProvider.class,method="selectAllMenHuInfo")
    List<RecruitDto> selectAllMenHuInfo(RecruitDto recruitDto);


    @SelectProvider(type=StuOperatProvider.class,method="selectAttentAllComp")
    List<CompAllInfoDto> selectAttentAllComp(CompAllInfoDto compAllInfoDto,String acount);

    @SelectProvider(type=StuOperatProvider.class,method="selectOnline")
    List<CompAllInfoDto> selectOnline(String acount);

    @UpdateProvider(type=StuOperatProvider.class, method="selectcompYuyueInfo")
    int  selectcompYuyueInfo(String acount,String stu_acount,String wangshenjob);

    @UpdateProvider(type=StuOperatProvider.class, method="selectcompYuyuemianInfo")
    int  selectcompYuyuemianInfo(String acount,String stu_acount,String wangshenjob);

    @SelectProvider(type=StuOperatProvider.class,method="selectStuName")
    String  selectStuName(String acount);

    @SelectProvider(type=StuOperatProvider.class,method="selectAttentByacount")
    List<Map<String,Object>>  selectAttentByacount(String acount);


    @SelectProvider(type=StuOperatProvider.class,method="checkAttentComp")
    List<String>  checkAttentComp(String stu_acount);

    @SelectProvider(type=StuOperatProvider.class,method="checkOnlineApplication")
    List<String>  checkOnlineApplication(String stu_acount);

    @InsertProvider(type=StuOperatProvider.class,method="stuAttentComp")
    int stuAttentComp(String stu_acount,String comp_acount);


    @InsertProvider(type=StuOperatProvider.class,method="stuOnlineApplication")
    int stuOnlineApplication(String stu_acount,String comp_acount,String wangshenjob);

    @DeleteProvider(type=StuOperatProvider.class,method="delstuAttentComp")
    int delstuAttentComp(String acount,String comp_acount);



}
